/**
 * 创业管理
 */

import http from '@/utils/httpRequest'
export default {
    // 创业政策分页
    workpolicyPage (param) {
        return http.get(http.adornUrl('/admin/workpolicy/list'), { params: param })
    },
    //  新增创业政策
    workpolicyAdd (data) {
        return http.post(http.adornUrl('/admin/workpolicy/add'), data)
    },
    // 创业政策 详情
    workpolicyInfo (id) {
        return http.get(http.adornUrl(`/admin/workpolicy/${id}`))
    },
    // 创业政策 修改
    workpolicyUpdate (data) {
        return http.put(http.adornUrl('/admin/workpolicy/update'), data)
    },
    // 创业政策 删除
    workpolicyDel (id) {
        return http.delete(http.adornUrl(`/admin/workpolicy/delete/${id}`))
    },

    // 设置商品分区
    goodsareafeatureAdd (data) {
        return http.post(http.adornUrl(`/admin/goodsareafeature/add`), data)
    },
    // 删除分区商品
    goodsareafeatureDel (data) {
        return http.delete(http.adornUrl(`/admin/goodsareafeature/delete`), { data: data })
    },
    // 设置商品分区的顺序
    updateOrderIndex (data) {
        return http.post(http.adornUrl(`/admin/goodsareafeature/updateOrderIndex`), data)
    },
    // 分页查看分区商品
    goodsareafeaturePage (param) {
        return http.get(http.adornUrl(`/admin/goodsareafeature/page`), { params: param })
    },
}